package com.study.password;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.Base64;

/**
 * @Classname Base64Demo
 * @Description TODO Base64编码示例
 * @Author 将烬星火是否太炽热, 明日黄花会开败阡陌
 * @Date 2020-06-08 11:54
 * @Version 1.0
 **/
public class Base64Demo {
    public static void main(String[] args) throws UnsupportedEncodingException {

//        String txt = "原来诀别是因为深藏眷恋，你用轮回换我枕边月圆。";
//        String Base64Encode = Base64.getEncoder().encodeToString(txt.getBytes());
//        System.out.println("Base64编码后结果为: " + Base64Encode);
//
//        byte[] Base64Decode = Base64.getDecoder().decode(Base64Encode);
//        String str = new String(Base64Decode, "UTF-8");
//        System.out.println(str);

        String text = "PENsaW5pY2FsRG9jdW1lbnQgeG1sbnM9InVybjpobDctb3JnOnYzIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxuczptaWY9InVybjpobDctb3JnOnYzL21pZiI+PHJlYWxtQ29kZSBjb2RlPSJDTiIvPjx0eXBlSWQgZXh0ZW5zaW9uPSJQT0NEX01UMDAwMDQwIiByb290PSIyLjE2Ljg0MC4xLjExMzg4My4xLjMiLz48dGVtcGxhdGVJZCByb290PSIyLjE2LjE1Ni4xMDAxMS4yLjEuMS4yNyIvPjxpZCBleHRlbnNpb249IkYzQkUxMjAyLTAxRjctNEY2RS1BODczLTRFM0UzNzIzQzQxMCIgcm9vdD0iMi4xNi4xNTYuMTAwMTEuMS4xIi8+PGNvZGUgY29kZT0iQzAwMDciIGNvZGVTeXN0ZW1OYW1lPSLljavnlJ/kv6Hmga/lhbHkuqvmlofmoaPop4TojIPnvJbnoIHkvZPns7siIGNvZGVTeXN0ZW09IjIuMTYuMTU2LjEwMDExLjIuNCIvPjx0aXRsZT7mo4DpqozorrDlvZU8L3RpdGxlPjxlZmZlY3RpdmVUaW1lIHZhbHVlPSIyMDIwMDkwMTE2MjcwMSIvPjxjb25maWRlbnRpYWxpdHlDb2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29kZSBjb2RlPSJERTA4LjEwLjAxMy4wMCIgY29kZVN5c3RlbT0iMi4xNi4xNTYuMTAwMTEuMi4yLjEiIGNvZGVTeXN0ZW1OYW1lPSLljavnlJ/kv6Hmga/mlbDmja7lhYPnm67lvZUiIGRpc3BsYXlOYW1lPSLmo4DpqozmiqXlkYrmnLrmnoTlkI3np7AiLz48dmFsdWUgeHNpOnR5cGU9IlNUIj7pnZLmtbfnuqLljYHlrZfljLvpmaI8L3ZhbHVlPjwvb2JzZXJ2YXRpb24+PC9lbnRyeT48ZW50cnk+PG9ic2VydmF0aW9uIGNsYXNzQ29kZT0iT0JTIiBtb29kQ29kZT0iRVZOIj48Y29kZSBjb2RlPSJERTA2LjAwLjE3OS4wMCIgY29kZVN5c3RlbT0iMi4xNi4xNTYuMTAwMTEuMi4yLjEiIGNvZGVTeXN0ZW1OYW1lPSLljavnlJ/kv6Hmga/mlbDmja7lhYPnm67lvZUiIGRpc3BsYXlOYW1lPSLmo4DpqozmiqXlkYrlpIfms6giLz48dmFsdWUgeHNpOnR5cGU9IlNUIj7ml6A8L3ZhbHVlPjwvb2JzZXJ2YXRpb24+PC9lbnRyeT48L3NlY3Rpb24+PC9jb21wb25lbnQ+PC9zdHJ1Y3R1cmVkQm9keT48L2NvbXBvbmVudD48L0NsaW5pY2FsRG9jdW1lbnQ+DQo=";
        byte[] base64Text = Base64.getDecoder().decode(text);
        String str = new String(base64Text, "UTF-8");
        System.out.println(str);

    }
}
